Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use etcd image version suffixes in kubeadm #82348

Merged
merged 2 commits into from Sep 5, 2019

Conversation

jpbetz
Copy link
Contributor

@jpbetz jpbetz commented Sep 4, 2019

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

etcd images published in gcr.io now include an image version suffix. For example the image version of k8s.gcr.io/etcd:3.3.15-0 is 0.

All in-tree kubernetes code uses these image versions except kubeadm and we'd like to update kubeadm to use them as well so that if we ever need to update an etcd image with a new base image or a fix to the scripts contained in the image we can do it via immutable docker tags.

One kubeadm is updated we will stop publishing the unversioned tags, e.g. k8s.gcr.io/etcd:3.3.15.

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

/milestone 1.17
/area etcd
/sig api-machinery
/priority important-longterm
/cc @dims

@k8s-ci-robot
Copy link
Contributor

@jpbetz: You must be a member of the kubernetes/milestone-maintainers GitHub team to set the milestone. If you believe you should be able to issue the /milestone command, please contact your and have them propose you as an additional delegate for this responsibility.

In response to this:

What type of PR is this?

/kind cleanup

What this PR does / why we need it:

etcd images published in gcr.io now include an image version suffix. For example the image version of k8s.gcr.io/etcd:3.3.15-0 is 0.

All in-tree kubernetes code uses these image versions except kubeadm and we'd like to update kubeadm to use them as well so that if we ever need to update an etcd image with a new base image or a fix to the scripts contained in the image we can do it via immutable docker tags.

One kubeadm is updated we will stop publishing the unversioned tags, e.g. k8s.gcr.io/etcd:3.3.15.

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

/milestone 1.17
/area etcd
/sig api-machinery
/priority important-longterm
/cc @dims

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. area/etcd size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. area/kubeadm sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. labels Sep 4, 2019
@@ -262,6 +262,10 @@ const (
// DefaultEtcdVersion indicates the default etcd version that kubeadm uses
DefaultEtcdVersion = "3.3.10"

// DefaultEtcdImageVersion indicates the etcd image version that kubeadm uses.
// For example, the image version of "k8s.gcr.io/etcd:3.3.15-0" is "0".
DefaultEtcdImageVersion = "0"
Copy link
Member

@neolit123 neolit123 Sep 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we call this DefaultEtcdRevision?

EDIT: actually i don't think we need this?
we can just have 16 and 17 in the bellow map to equal 3.3.15-0 and same for DefaultEtcdVersion

version really means "tag" here.
/cc @rosti

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. We don't need this. We can just use "3.3.15-0" as the tag directly.

@@ -425,7 +429,7 @@ var (
14: "3.3.10",
15: "3.3.10",
16: "3.3.10",
17: "3.3.10",
17: "3.3.15-0",
Copy link
Member

@neolit123 neolit123 Sep 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could have done that for both 16 and 17 in @dims PR.
but let's wait for it to merge and we can amend here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, I noticed the same thing while writing this PR up. I'll simplify this PR and we can use it to amend.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll hold it on until #82199 lands in.
/hold

@@ -262,6 +262,10 @@ const (
// DefaultEtcdVersion indicates the default etcd version that kubeadm uses
DefaultEtcdVersion = "3.3.10"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we forgot to change this to 3.3.15 (or 3.3.15-0) in the other PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll fix here.

@neolit123
Copy link
Member

/retest
/test pull-kubernetes-e2e-kind

@jpbetz
Copy link
Contributor Author

jpbetz commented Sep 4, 2019

/test pull-kubernetes-node-e2e

@jpbetz
Copy link
Contributor Author

jpbetz commented Sep 4, 2019

/retest

@jpbetz
Copy link
Contributor Author

jpbetz commented Sep 5, 2019

/test pull-kubernetes-node-e2e

Job appears to be flaking for multiple PRs

@jpbetz
Copy link
Contributor Author

jpbetz commented Sep 5, 2019

/retest

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 5, 2019
@jpbetz
Copy link
Contributor Author

jpbetz commented Sep 5, 2019

/retest

@neolit123
Copy link
Member

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 5, 2019
@neolit123
Copy link
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 5, 2019
@jpbetz
Copy link
Contributor Author

jpbetz commented Sep 5, 2019

rebased on #82199

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jpbetz, neolit123

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 5, 2019
@neolit123
Copy link
Member

/milestone v1.16

@k8s-ci-robot k8s-ci-robot added this to the v1.16 milestone Sep 5, 2019
@k8s-ci-robot k8s-ci-robot merged commit 836b901 into kubernetes:master Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/etcd area/kubeadm cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. release-note-none Denotes a PR that doesn't merit a release note. sig/api-machinery Categorizes an issue or PR as relevant to SIG API Machinery. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants